import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import SvgIcon from "./SvgIcon/index.vue";

const allGloablComponent:any = { SvgIcon };

export default {
  install(app: any) {
    Object.keys(allGloablComponent).forEach((key) => {
      app.component(key, allGloablComponent[key]);
    });
    // 将 ElementPlus图标注册为全局组件
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component);
    }
  },
};
